package com.ls.task.config;

import org.springframework.context.annotation.Bean;
import org.springframework.hateoas.UriTemplate;
import org.springframework.hateoas.config.EnableEntityLinks;
import org.springframework.hateoas.config.EnableHypermediaSupport;
import org.springframework.hateoas.config.EnableHypermediaSupport.HypermediaType;
import org.springframework.hateoas.hal.CurieProvider;
import org.springframework.hateoas.hal.DefaultCurieProvider;
@EnableEntityLinks
@EnableHypermediaSupport(type= {HypermediaType.HAL})
public class HateoasApplication {
 
    @Bean
    public CurieProvider curieProvider() {
        return new DefaultCurieProvider("todo",
                new UriTemplate("http://www.midgetontoes.com/todolist/rels/{rel}"));
    }
 
}
